package com.ewanghuiju.app.base.contract.login;

import com.ewanghuiju.app.base.BasePresenter;
import com.ewanghuiju.app.base.BaseView;
import com.ewanghuiju.app.model.bean.response.InviterInfo;
import com.ewanghuiju.app.model.bean.response.LoginResponBean;
import com.ewanghuiju.app.model.bean.response.UserInfoResponBean;
import com.ewanghuiju.app.model.http.request.BaseRequest;

/**
 * @author sj  qq:751943509
 * @class describe
 * @time 2020/2/14
 */
public interface AddInvitecodeContract {

    interface View extends BaseView {

        void showInviterinfo(InviterInfo inviterInfo);

        void showInviterinfoErrorMsg(int code, String message);

        void showUserInfo(UserInfoResponBean bean);

        void showBindUserMobileInfo(LoginResponBean loginResponBean);

        void showWxUserRegister(LoginResponBean bean);

    }

    interface Presenter extends BasePresenter<View> {

        void getInviterinfo(BaseRequest baseRequest);

        void addCode(String code);

        /**
         * 绑定邀请码
         *
         * @param mobile
         * @param number
         */
        void bindUserMobileparentid(String mobile, String number);

        /**
         * 获取用户信息
         */
        void getUserInfo();

        void wxUserRegister(String unionid, String mobile, String number, String headimgurl, String nickname);

    }

}
